mediacontrols: Use tabular figures for time and duration
authorAlexander Mikhaylenko <alexm@gnome.org>
Mon, 27 Apr 2020 12:28:20 +0000 (17:28 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Mon, 27 Apr 2020 12:28:20 +0000 (17:28 +0500)
In particular, this prevents gtk4-widget-factory from jumping every
second.

gtk/ui/gtkmediacontrols.ui

index bc12721713a3695c2e4e0fc9321d10156cf6cf69..412ecfa51cbaf39a0c716daaa45db82b565dfd66 100644 (file)
         <child>
           <object class="GtkBox" id="time_box">
             <child>
-              <object class="GtkLabel" id="time_label"/>
+              <object class="GtkLabel" id="time_label">
+                <attributes>
+                  <attribute name="font-features" value="tnum=1"/>
+                </attributes>
+              </object>
             </child>
             <child>
               <object class="GtkScale" id="seek_scale">
               </object>
             </child>
             <child>
-              <object class="GtkLabel" id="duration_label"/>
+              <object class="GtkLabel" id="duration_label">
+                <attributes>
+                  <attribute name="font-features" value="tnum=1"/>
+                </attributes>
+              </object>
             </child>
           </object>
         </child>